package com.op.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 用户相关配置
 * ClassName： UserConfigure
 * Date： 2021/10/11 15:22
 *
 * @author 孤焰
 * @version 1.0
 **/

@Configuration
public class UserConfigure {
    /**
     * 密码加密器
     */
    @Bean
    public BCryptPasswordEncoder getBCryptPasswordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
